package com.jin.mapper;

import com.jin.pojo.OrderDesc;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDescMapper {

    //添加订单表
    int insertOrderDesc(OrderDesc orderDesc);

    //删除订单
    int deleteOrderDesc(Integer id);

    //修改订单
    int updateOrderDesc(OrderDesc orderDesc);

    //查询订单根据id
    OrderDesc getOrderDescById(Integer id);

    //查询所有订单
    List<OrderDesc> getOrderDescs();

    //查询订单目前是否被审批
    OrderDesc getOrderApproveStatus(Integer id);
}

